package org.iks.user.config;

import org.iks.user.aop.GlobalHandlerInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Author kzou
 * Date 2024/5/25
 * Description:
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new GlobalHandlerInterceptor())
                .addPathPatterns("/**")
                .order(0);
        WebMvcConfigurer.super.addInterceptors(registry);
    }

}
